<?php

class Form_AssignrequestForm extends Form_Custom_General {
 
    public function init() {
        $ass_id = $this->createElement('hidden', 'ass_id')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60"));
        $this->addElement($ass_id);

       
       
        
        $cont_id = $this->createElement('select', 'cont_id')
                #->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->setAttribs(Array( "class" => "select2"));
               #->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("assign_required_cntractor"))));
        $this->addElement($cont_id);
        
        
        $ass_status = $this->createElement('select', 'ass_status')
                ->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->setAttribs(Array( "class" => "select2"))
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("assign_required_status"))));
        $this->addElement($ass_status);

        
        $submit = $this->createElement('submit', 'Save')
                ->setAttribs(Array('title' => "Save changes", 'class'=>"btn-glow primary"))
                 ->setLabel($this->translateObj->translate("frm_save"));
        $this->addElement($submit);
        
       
        $reset = $this->createElement('reset', 'Reset')
                ->setAttribs(Array('title' => "Save changes and continue to edit", 'class' => "btn-glow primary"))
                 ->setLabel($this->translateObj->translate("frm_reset"));
        $this->addElement($reset);
    }

}